function FirstFunc(targetClass: any) {
  console.log(targetClass);
  new targetClass().buy();
}

@FirstFunc
class Parent {
  name: string = '111';

  buy() {
    console.log('parent ', this.name);
  }
}

export {};
